//
//  HZMSearchCollectionViewCell.m
//  糖糖大魔王
//
//  Created by 韩震明 on 15/10/26.
//  Copyright © 2015年 韩震明. All rights reserved.
//

#import "HZMSearchCollectionViewCell.h"


@implementation HZMSearchCollectionViewCell

- (void)dealloc
{
    [_footLabel release];
    [_headLabel release];
    [_leftImageView release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createCell];
    }
    return self;
}

- (void)createCell
{
    self.leftImageView = [[UIImageView alloc] initWithFrame:CGRectMake(10, self.contentView.frame.size.height / 3, self.contentView.frame.size.width / 6, self.contentView.frame.size.height / 2)];
    [self.contentView addSubview:self.leftImageView];
    [_leftImageView release];
    
    self.headLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.contentView.frame.size.width / 4, self.contentView.frame.size.height / 3, self.contentView.frame.size.width / 4, self.contentView.frame.size.height / 4)];
    [self.contentView addSubview:self.headLabel];
    [_headLabel release];
    self.headLabel.font = [UIFont systemFontOfSize:11.0];
    
    self.footLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.contentView.frame.size.width / 4, 4 * self.contentView.frame.size.height / 7, self.contentView.frame.size.width / 2, self.contentView.frame.size.height / 4)];
    [self.contentView addSubview:self.footLabel];
    [_footLabel release];
    self.footLabel.font = [UIFont systemFontOfSize:9.0];
    self.footLabel.textColor = [UIColor grayColor];
}

@end
